﻿using PengSW.TcpService;

namespace ProtocolAnalyzer
{
    public class AnalyzeProtocolFactory : IProtocolFactory
    {
        public AnalyzeProtocolFactory(ProtocolRule aRule)
        {
            Rule = aRule;
        }
        public ProtocolRule Rule { get; }
        public Protocol CreateProtocol() => new AnalyzeProtocol(Rule);
        public string CreateName() => "AnalyzeConnection";
    }
}
